package com.hylz.nbs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hylz.nbs.bean.AdminInfo;
import com.hylz.nbs.mapper.IAdminInfoMapper;
import com.hylz.nbs.service.IAdminInfoService;
import com.hylz.nbs.util.StringUtil;
/**
 * 后台管理员业务模型层
 * @author H
 * @date 2021年7月18日
 */

@Service
public class AdminInfoServiceImpl implements IAdminInfoService{
	@Autowired
	private IAdminInfoMapper adminInfoMapper;
	
	@Override
	public AdminInfo login(AdminInfo admin) {
		if(StringUtil.checkNull(admin.getAname(),admin.getPwd())) {
			return null;
		}
		return adminInfoMapper.login(admin);
	}
}
